home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / With.au3 < prev   
Text File  |  2006-06-17  |  186b  |  11 lines

  1. $oExcel = ObjCreate("Excel.Application")
  2. $oExcel.visible =1
  3. $oExcel.workbooks.add
  4.  
  5. With $oExcel.activesheet
  6.     .cells(2,2).value = 1
  7.     .range("A1:B2").clear
  8. Endwith
  9.  
  10. $oExcel.quit
  11.